<!-- 用户中心头部 -->
<div ng-controller='UserIndex' class='user-index'>
    <div class='header'>
        <div class='user-icon'>
            <img ng-src='{{user.headimgurl}}' class='head-icon' ng-click='open("User/info")'>
            <img src='../image/user/edit.png' class='edit'>
        </div>
        <div class='user-name'>
            {{user.nickname}}
        </div>
        <div class='user-score' ng-click='open("User/score")'>
            我的幸福豆：{{user.score}}
        </div>
    </div>

    <div class='gap bg-gray'></div>

    <div class='user-menu'>
        <!--上次课程 -->
        <div class='last-course' ng-if='lastCourse'>
            <div class='title'>
                <i class='icon'><img src='../image/icon/last.png'></i>最近课程
            </div>
            <div class='banner' ng-click='listen(lastCourse.course_id, lastCourse.play_type, lastCourse.chapter_id)'>
                <img ng-src='{{lastCourse.banner}}'>
                <div class='course-name'>{{lastCourse.name}}</div>
            </div>
        </div>

        <!--菜单列表-->
        <ul class='am-list menu-list'>
            <li class='title' ng-click='open("/Vip/purchase")'>
                <i class='icon'><img src='../image/icon/vip.png'></i>健康365电台
                <i class='am-fr fa fa-angle-right'></i>
            </li>
            <li class='title' ng-click='open("/User/course")'>
                <i class='icon'><img src='../image/icon/course.png'></i>我的课程
                <i class='am-fr fa fa-angle-right'></i>
            </li>
            <li class='title' ng-click='open("/User/score")'>
                <i class='icon'><img src='../image/icon/scoure.png'></i>我的幸福豆
                <i class='am-fr fa fa-angle-right'></i>
            </li>
            <li class='title' ng-click='open("/User/order")'>
                <i class='icon'><img src='../image/icon/order.png'></i>我的订单
                <i class='am-fr fa fa-angle-right'></i>
            </li>
            <li class='title' ng-click='open("/User/feedback")'>
                <i class='icon'><img src='../image/icon/service.png'></i>意见反馈
                <i class='am-fr fa fa-angle-right'></i>
            </li>
            <!-- <li class='title' ng-click='open("/Activity/list")'>
                <i class='icon'><img src='../image/icon/photo.png'></i>我的宝贝相册
                <i class='am-fr fa fa-angle-right'></i>
            </li> -->
        </ul>
    </div>
</div>